<?php
$order_id = (int) $_GET['id'];

$s = "SELECT * FROM `{history}` WHERE `id`='" . $order_id . "' ORDER BY `time` DESC";
$q = $db->Query($s);
$history = array();
while ($r = $q->FetchRow())
{
	$order = new Order($r);
	$history[] = $order;
	//print "<pre>".var_export($r,true)."</pre><hr/>";
}
?>